<!DOCTYPE html>
<html>
<head>
<title>Provider Info List</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${staticUrl}static/script/jquery-1.8.2.min.js" ></script>
<link href="${staticUrl}static/styles/global.css" rel="stylesheet" type="text/css">
<style type="text/css">
.spring,.summer,.autumn,.winter{color:#c00;font-weight:bold !important}
</style>
<script>
var nowShowSku = false;
function showSKU(obj){
if(!!nowShowSku)
nowShowSku.hide();
nowShowSku = $(obj).parent().parent().next(".J_sku_box");
nowShowSku.show();
};
function ajaxUrl(url){
	$.ajax({
		url : url,
		success : function(){
			alert("操作成功");
		}
	})
}
</script>
</head>
<body>
<div id="J_bottomPageBox" class="xs-toolbar clearfix">
<div class="fl"><a href="${requestUrl}provider/provider-edit.htm">添加店铺</a></div>
<@xpage currentPage="${(page.pageNo)!0}" totalPage="${(page.pageCount)!0}" theme="1"/>
</div>
<div class="config-box">
<table width="95%" class="config-table">
	<tr>
		<th>ID</th>
		<th>名称</th>
		<th>地址</th>
		<th>联系人</th>
		<th>电话</th>
		<th>手机</th>
		<th>QQ</th>
		<th>旺旺</th>
		<th>商品数</th>
		<th>优惠</th>
		<th>状态</th>
		<th>操作</th>
	</tr>
	<#if !providerBoList?? || providerBoList?size == 0>
	<tr>
		<td colspan=12>未找到数据！</td>
	</tr>
	<#else>
		<#list providerBoList as provider>
		<tr id="J_provider_${provider.id?string('#')}" class="${(provider_index%2==0)?string('even','')}">
			<td>${provider.id?string('#')}</td>
			<td>[${(!provider.storeType?? || provider.storeType==0)?string('201x','2012')}]<a href="${provider.taobaoHomeUrl!'#'}" target="_blank">${provider.name!'-'}</a></td>
			<td>
			${provider.address!'-'}
			</td>
			<td>
			${provider.contactName!'-'}
			</td>
			<td>
			${provider.phone!'-'}
			</td>
			<td>
			${provider.mobile!'-'}
			</td>
			<td>
			${provider.qq!'-'}
			</td>
			<td>
			${provider.wangwang!'-'}
			</td>
			<td>
			${provider.validGoodsCount?string('#')}
			</td>
			<td>
			${provider.offsale!'-'}
			</td>
			<td>
			<#if !provider.status?? || provider.status == 0>
			有效
			<#else>
			失效
			</#if>
			</td>
			<td>
			<a href="${requestUrl}goods/list.htm?providerId=${provider.id?string('#')}">所有商品</a>
			|
			<a href="${requestUrl}provider/provider-edit.htm?id=${provider.id?string('#')}">编辑</a>
			</td>
		</tr>
		</#list>
	</#if>
</table>
</div>
<div id="J_bottomPageBox" class="xs-pagebar clearfix">
<@xpage currentPage="${(page.pageNo)!0}" totalPage="${(page.pageCount)!0}" />
</div>
</body>
</html>